describe('practice-1-6', function () {

    it("根据牛顿迭代法求方程的根", function () {
        var root_x1 = roots_newton_solve_equation(2,-4,3,-6);
        console.info('root_x1:'+root_x1);
        expect(root_x1.toFixed(2)).toBe("2.00");

        var root_x2 = roots_newton_solve_equation(4,-2,3,-8);
        console.info('root_x2'+root_x2);
        expect(root_x2.toFixed(2)).toBe("1.22");

        var root_x3 = roots_newton_solve_equation(2,-5,3,-3);
        console.info('root_x3'+root_x3);
        expect(root_x3.toFixed(2)).toBe("2.13");
    });
});